const ethers = require('ethers');
const ABI = [
    "function store(uint[] memory num) public",
    "function retrieve() public view returns (uint256)"
]
const iface = new ethers.utils.Interface(ABI);
const encodeStaff = iface.encodeFunctionData("store", [[3333,33,11,44]])

//0x06bd010d000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000d050000000000000000000000000000000000000000000000000000000000000021000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000000000000000000000000000000000002c

//0x06bd010d000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000d050000000000000000000000000000000000000000000000000000000000000021000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000000000000000000000000000000000002c


console.log(encodeStaff);